<extend name="Public:base" />
<!-- 网站标题 -->
<block name="title">问卷管理</block>
<block name="appendheader">
	<!-- 删除确认插件 --> 
	<script type="text/javascript" src="__PUBLIC__/artDialog/jquery.artDialog.js?skin=default"></script> 
	<script type="text/javascript" src="__PUBLIC__/artDialog/iframeTools.js"></script> 
	<script type="text/javascript" src="__PUBLIC__/common/js/list.js"></script>
	<!-- 选中当前菜单引入 -->
	<script type="text/javascript">
		$(function() {
			$("#WebMenu-2000").addClass('active');	//选中父菜单
			$("#WebMenu-2009").addClass('active');	//选中当前菜单
		});
	</script>
</block>
<!-- 当前位置 -->
<block name="breadcrumb">
	<div class="page-header pull-left">
		<div class="page-title">问卷管理</div>
	</div>
	<ol class="breadcrumb page-breadcrumb pull-left">
		<li><i class="fa fa-home"></i>&nbsp;<a href="__APP__?g=Admin">首页</a>&nbsp;&nbsp;<i class="fa fa-angle-right"></i>&nbsp;&nbsp;</li>
		<li><a href="#">基础数据</a>&nbsp;&nbsp;<i class="fa fa-angle-right"></i>&nbsp;&nbsp;</li>
		<li class="active">问卷管理</li>
	</ol>
</block>
<block name="main_content">
	<div class="row">
		<div class="col-md-12">
			<div class="portlet box">
				<div class="portlet-body">
					<div class="row mbm">
						<div class="col-md-4">
							<a href="__APP__?g={:GROUP_NAME}&m={:MODULE_NAME}&a=add" class="btn btn-success"><i class="fa fa-plus"></i>&nbsp;添加</a>&nbsp;
							<a href="javascript:confirm_deleteall();" class="btn btn-danger"><i class="fa fa-trash-o"></i>&nbsp;批量删除</a>&nbsp;
						</div>
						<div class="col-md-4">
							<form id="searchForm" name="searchForm" action="__APP__?g={:GROUP_NAME}&m={:MODULE_NAME}&a={:ACTION_NAME}" method="post">
								<div class="dataTables_filter" id="table_id_filter">
									<label>
										<div class="input-group">
											<input type="search" value="{$Think.request.search_keyword}" name="search_keyword" placeholder="请输入关键字检索" class="form-control" />
											<span class="input-group-btn">
												<input type="submit" class="btn btn-success" value="查询" />
											</span>
										</div>
									</label>
								</div>
							</form>
						</div>
					</div>
					<form id="myform" name="myform" action="__APP__?g={:GROUP_NAME}&m={:MODULE_NAME}&a=delete" method="post" >
						<table class="table table-hover table-striped table-bordered table-advanced tablesorter tb-sticky-header">
							<thead>
								<tr>
								    <th width="2%"><input type="checkbox" class="checkall" /></th>
									<th width="3%">序号</th>
									<th width="15%">问卷名称</th>
									<th width="38%">问卷简介</th>
									<th width="5%">是否发布</th>
									<th width="17%">操作</th>
								</tr>
							</thead>
							<tbody>
								<volist name="data" id="vo">
									<tr>
										<td><input type="checkbox" id="ids" name="ids[{$i}]" value="{$vo.id}" /></td>
										<td>{$vo.seq}</td>
										<td>{$vo.title}</td>
										<td>{$vo.intro}</td>
										<td>{$vo.status}</td>
										<td>
										    <if condition="$vo.status_num eq 'b'">
										    	<a type="button" href="__APP__?g=Index&m=Form&a=view&formid={$vo.id}" target="_black" class="btn btn-warning btn-xs mbs"><i class="fa fa-edit"></i>&nbsp;问卷预览</a>&nbsp;
												<a type="button" href="javascript:set_user_role('ids[{$i}]');" class="btn btn-green btn-xs mbs"><i class="fa fa-cog"></i>题目管理</a>&nbsp;
											<else /> 
												<a type="button" href="__APP__?g=Admin&m=QuestionTestEdit&a=index&formid={$vo.id}&mode=edit" class="btn btn-green btn-xs mbs"><i class="fa fa-edit"></i>&nbsp;问卷编辑</a>&nbsp;
											</if>								
											<a type="button" href="__APP__?g={:GROUP_NAME}&m={:MODULE_NAME}&a=edit&id={$vo.id}" class="btn btn-blue btn-xs mbs"><i class="fa fa-edit"></i>&nbsp;编辑</a>&nbsp;
											<a type="button" href="javascript:confirm_delete('ids[{$i}]')" class="btn btn-danger btn-xs mbs"><i class="fa fa-trash-o"></i>&nbsp;删除</a> 
										</td>
									</tr>
								</volist>
							</tbody>
						</table>
					</form>
					<!-- 显示分页信息 --> 
					{$show}
				</div>
			</div>
		</div>
	</div>
</block>